package com.ghf.dp3.second;

//Person（ConcreteComponent 被装饰者的具体构件）不需要定义一个抽象的 Component,Decorator直接继承它
public class Person {
    private String name;

    public Person(){

    }

    public Person(String name){
        this.name=name;
    }

    public void show(){
        System.out.println(String.format("装扮的%s",name));
    }

}
